package com.coders.android.spring.service;

import com.coders.android.hibernate.dao.LoginDAO;
import com.coders.android.hibernate.dto.Login;

public class LoginService {

	private LoginDAO loginDAO;

	public LoginDAO getLoginDAO() {
		return loginDAO;
	}

	public void setLoginDAO(LoginDAO loginDAO) {
		this.loginDAO = loginDAO;
	}
	
	public boolean insertar( Login login ) {
		return loginDAO.insertar(login);
	}
	
	public String obtenerPassword( String cedula ) {
		return loginDAO.obtenerPassword(cedula);
	}
}
